package org.egrit;

/**
 * Implemented by function classes used with {@linkplain CalculatedGrid}.
 *
 * @author michael
 */
public interface GridFunction {

    /**
     * Gets a value for the given grid position. This is called
     * by the associated grid.
     *
     * @param grid the grid calling this method
     * @param gridX grid X ordinate
     * @param gridY grid Y ordinate
     *
     * @return grid value
     */
    Number apply(IGrid grid, int gridX, int gridY);
    
}
